<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>

<%-- 
    Document   : proyectos_corredor
    Created on : 21/06/2010, 10:33:06 PM
    Author     : Manuel
--%>

<%@page contentType="text/html" pageEncoding="windows-1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">



<table width="100" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="756" height="160">
                <param name="movie" value="swf/banner_int.swf" />
                <param name="quality" value="high" />
                <embed src="swf/banner_int.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="756" height="160"></embed>
            </object></td>
    </tr>
    <tr>
        <td><img src="images/linea.jpg" width="756" height="3" /></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td><table width="756" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td colspan="3" class="titulo_azul">Inmuebles Registrados ---- ${tipo}</td>
                </tr>
                <tr>
                    <td colspan="3" >&nbsp;</td>
                </tr>
                <tr>
                    <td colspan="3" ><img src="images/linea.jpg" width="756" height="3" /></td>
                </tr>
                <tr>
                    <td colspan="3" height="10"></td>
                </tr>
                <tr>
                  <!--<h1>Bienvenido ${corredor.clave}</h1>-->
                    <td colspan="3" height="10">Bienvenido  ${corredor.nombre}<span style="font-weight: bold"></span> </td>
                </tr>
                <tr>
                    <td colspan="3" height="10"></td>
                </tr>
                <tr>
                    <td width="454" height="10">Inmuebes vendidos : <span style="font-weight: bold">#</span> </td>
                </tr>
                <tr>
                    <td colspan="3" height="10">Inmuebes registrados : <span style="font-weight: bold">#</span> </td>
                </tr>
                <tr>
                     <td width="454" colspan="5" height="20"> 
                </tr>
                <tr>
                    <td width="454" colspan="5" height="20">  <button onclick="location.href='registrar_inmueble.jsp'">Agregar Inmueble</button>  </td> </tr>
                <!--                    <td width="454" colspan="5" height="20"><a href="registrar_inmueble.jsp" class="link_texto_azul">Registrar Inmueble </a></td>                 </tr>  -->
                <tr>
                    <td colspan="3"><table width="500" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
                            <tr>
                                <th>Nombre</th>
                                <th>Distrito</th>
                                <th>Precio, en US$</th>
                                <th>Cantidad Modificaciones</th>
                                <th>Editar</th>
                                <th>Consultas</th>
                            </tr>

                            <c:forEach items="${inmuebles}" var="inmueble">
                                <div class="inmueble">
                                    <tr>
                                        <td>${inmueble.nombre}&nbsp;</td>
                                        <td>${inmueble.distrito}&nbsp;</td>
                                        <td>${inmueble.precioVenta}&nbsp;</td>
                                        <td>${inmueble.modificacion}&nbsp;</td>
                                        <td><a href="/urbania-0.0.1-SNAPSHOT/<c:out value="${inmueble.codigo}"/>/registrar_inmueble.jsp">Editar&nbsp;</a></td>
                                        <td align="center"><a href="nueva_modificacion.jsp?cod=${inmueble.codigo}" class="link_texto_azul" onclick="window.open(this.href,'window','width=450,height=400,scrollbars=no');return false">Ver consultas</a></td>
                                    </c:forEach>
                                    </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="3">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="3">&nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <table width="756" border="0" align="center" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td width="484" valign="top">
                                                </td>
                                            </tr>
                                        </table></td>
                                </tr>
                                <tr>
                                    <td colspan="3">&nbsp;</td>
                                </tr>
                        </table></td>
                </tr>
            </table>
